package com.BlogPark.mapper;

import com.BlogPark.pojo.DetailsUser;
import org.springframework.stereotype.Component;

/**
 * @Auther: MFM
 * @Date: 2022/8/14 - 08 - 14 - 18:00
 * @version: 1.0
 */

@Component
public interface DetailsUserMapper {
    //通过用户id找到用户
    DetailsUser selectById(int id);

    //修改用户信息
    Integer updateDetailsUserInfo(DetailsUser user);

    //根据id获取用户名
    String getName(Integer userId);

    //初始化用户信息
    Integer defaultDetailInfo(Integer userId);

    //获取指定用户的头像base64
    String getprofilePhoto(Integer userId);
}
